package view.colorant;

import carte.Cellule;
import carte.element.Fire;
import carte.population.Individual;

public class AnimalColorant extends Colorant {

	public AnimalColorant() {
	}

	@Override
	public int getRed(Cellule c) {
		Individual i = c.getIndividual(0);
		if(i == null)
			return -1;
		return i.texture.getRed();
	}

	@Override
	public int getBlue(Cellule c) {
		Individual i = c.getIndividual(0);
		if(i == null)
			return -1;
		return i.texture.getBlue();
	}

	@Override
	public int getGreen(Cellule c) {
		Individual i = c.getIndividual(0);
		if(i == null)
			return -1;
		return i.texture.getGreen();
	}

}
